/*! 2019-12-30 20:05:43 */
!function (t) {
    var e = {};

    function n(r) {
        if (e[r]) return e[r].exports;
        var i = e[r] = {i: r, l: !1, exports: {}};
        return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports
    }

    n.m = t, n.c = e, n.d = function (t, e, r) {
        n.o(t, e) || Object.defineProperty(t, e, {enumerable: !0, get: r})
    }, n.r = function (t) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(t, "__esModule", {value: !0})
    }, n.t = function (t, e) {
        if (1 & e && (t = n(t)), 8 & e) return t;
        if (4 & e && "object" == typeof t && t && t.__esModule) return t;
        var r = Object.create(null);
        if (n.r(r), Object.defineProperty(r, "default", {
            enumerable: !0,
            value: t
        }), 2 & e && "string" != typeof t) for (var i in t) n.d(r, i, function (e) {
            return t[e]
        }.bind(null, i));
        return r
    }, n.n = function (t) {
        var e = t && t.__esModule ? function () {
            return t.default
        } : function () {
            return t
        };
        return n.d(e, "a", e), e
    }, n.o = function (t, e) {
        return Object.prototype.hasOwnProperty.call(t, e)
    }, n.p = "./", n(n.s = 34)
}([function (t, e, n) {
    t.exports = n(15)
}, function (t, e) {
    function n(t, e) {
        for (var n = 0; n < e.length; n++) {
            var r = e[n];
            r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r)
        }
    }

    t.exports = function (t, e, r) {
        return e && n(t.prototype, e), r && n(t, r), t
    }
}, function (t, e) {
    t.exports = function (t, e) {
        if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
    }
}, function (t, e) {
    function n(t, e, n, r, i, o, s) {
        try {
            var a = t[o](s), u = a.value
        } catch (t) {
            return void n(t)
        }
        a.done ? e(u) : Promise.resolve(u).then(r, i)
    }

    t.exports = function (t) {
        return function () {
            var e = this, r = arguments;
            return new Promise(function (i, o) {
                var s = t.apply(e, r);

                function a(t) {
                    n(s, i, o, a, u, "next", t)
                }

                function u(t) {
                    n(s, i, o, a, u, "throw", t)
                }

                a(void 0)
            })
        }
    }
}, function (t, e, n) {
    var r = n(9), i = n(17);
    t.exports = function (t, e) {
        return !e || "object" !== r(e) && "function" != typeof e ? i(t) : e
    }
}, function (t, e) {
    function n(e) {
        return t.exports = n = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
            return t.__proto__ || Object.getPrototypeOf(t)
        }, n(e)
    }

    t.exports = n
}, function (t, e, n) {
    var r = n(18);
    t.exports = function (t, e) {
        if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
        t.prototype = Object.create(e && e.prototype, {
            constructor: {
                value: t,
                writable: !0,
                configurable: !0
            }
        }), e && r(t, e)
    }
}, function (t, e, n) {
    "use strict";

    function r() {
        if (window.external && external.getGuid) return window.external.getGuid().replace(/-/g, "");
        var t = window.localStorage.getItem("userGuid");
        return 32 === String(t).length ? t : (t = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function (t) {
            var e = 16 * Math.random() | 0;
            return ("x" === t ? e : 3 & e | 8).toString(16)
        }), window.localStorage.setItem("userGuid", t), t)
    }

    function i(t) {
        var e = function (t) {
            t || (t = window.location.search.substring(1));
            for (var e, n = t.split("&"), r = {}, i = 0; i < n.length; i++) r[(e = n[i].split("="))[0]] = decodeURIComponent(e[1] || "");
            return r
        }(window.location.search.substring(1));
        return t ? e[t] : e
    }

    function o(t) {
        var e = document.createElement("A");
        e.setAttribute("href", t), e.setAttribute("target", "_blank"), e.setAttribute("rel", "noreferrer noopener"), e.click()
    }

    n.d(e, "a", function () {
        return r
    }), n.d(e, "c", function () {
        return i
    }), n.d(e, "d", function () {
        return o
    }), n.d(e, "b", function () {
        return a
    });
    var s = 0;

    function a() {
        return "irid_" + (s += 1)
    }
}, function (t, e, n) {
    "use strict";
    n.d(e, "a", function () {
        return d
    });
    var r = n(0), i = n.n(r), o = n(3), s = n.n(o), a = n(2), u = n.n(a), c = n(1), l = n.n(c), h = 0,
        f = /^(\S+)\s*(.*)$/, d = function () {
            function t() {
                var e = arguments, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                u()(this, t), this.el = n.el || null, this.tagName = n.tagName || "div", this.attributes = n.attributes || {}, this.events = n.events || null, h += 1, this.id = h, this.eventNamespace = ".nodesprite" + h, this._ensureElement();
                var r = this;
                setTimeout(function () {
                    r.initialize.apply(r, e)
                }, 0)
            }

            var e;
            return l()(t, [{
                key: "initialize", value: (e = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return e.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    return this
                }
            }, {
                key: "hide", value: function () {
                    this.$el.hide()
                }
            }, {
                key: "show", value: function () {
                    this.$el.show()
                }
            }, {
                key: "delegateEvents", value: function () {
                    var t = this.events;
                    if (!t) return this;
                    for (var e in this.undelegateEvents(), t) {
                        var n = t[e];
                        if ("function" != typeof n && (n = this[n]), n) {
                            var r = e.match(f);
                            this.delegate(r[1], r[2], n.bind(this))
                        }
                    }
                    return this
                }
            }, {
                key: "delegate", value: function (t, e, n) {
                    return this.$el.on(t + this.eventNamespace, e, n), this
                }
            }, {
                key: "undelegateEvents", value: function () {
                    return this.$el && this.$el.off(this.eventNamespace), this
                }
            }, {
                key: "remove", value: function () {
                    return this.undelegateEvents(), this.$el.remove(), this
                }
            }, {
                key: "setElement", value: function (t) {
                    return this._setElement(t), this.delegateEvents(), this
                }
            }, {
                key: "_setElement", value: function (t) {
                    this.$el = $(t), this.el = this.$el[0]
                }
            }, {
                key: "_ensureElement", value: function () {
                    this.el ? this.setElement(this.el) : (this.setElement(this._createElement(this.tagName)), this._setAttributes(this.attributes))
                }
            }, {
                key: "_createElement", value: function (t) {
                    return document.createElement(t)
                }
            }, {
                key: "_setAttributes", value: function (t) {
                    this.$el.attr(t)
                }
            }]), t
        }()
}, function (t, e) {
    function n(t) {
        return (n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
            return typeof t
        } : function (t) {
            return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
        })(t)
    }

    function r(e) {
        return "function" == typeof Symbol && "symbol" === n(Symbol.iterator) ? t.exports = r = function (t) {
            return n(t)
        } : t.exports = r = function (t) {
            return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : n(t)
        }, r(e)
    }

    t.exports = r
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "", __j = Array.prototype.join;

        function print() {
            __p += __j.call(arguments, "")
        }

        with (obj) __p += '<img class="qbsbox-direct-logo" src="' + (null == (__t = thumb) ? "" : __t) + '"><div class="qbsbox-direct-info"><p class="qbsbox-direct-name"><sapn class="qbsbox-direct-text">' + (null == (__t = title) ? "" : __t) + "</sapn> ", "undefined" != typeof type_text && (__p += ' <span class="qbsbox-direct-tag">' + (null == (__t = type_text) ? "" : __t) + "</span> "), __p += ' </p><p class="qbsbox-direct-other">' + (null == (__t = sub_title) ? "" : __t) + "</p></div> ", "undefined" != typeof button_text && (__p += ' <span class="qbsbox-direct-btn">' + (null == (__t = button_text) ? "" : __t) + "</span> ");
        return __p
    }
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "", __j = Array.prototype.join;

        function print() {
            __p += __j.call(arguments, "")
        }

        with (obj) {
            __p += '<div class="qbsbox-direct-bd"><div class="hd qbsbox-direct-thumb"><img src="' + (null == (__t = thumb) ? "" : __t) + '"></div><div class="bd"><div class="qbsbox-direct-text"><strong>' + (null == (__t = text) ? "" : __t) + "</strong> ", tag && (__p += ' <span class="qbsbox-direct-tag tag-' + (null == (__t = tag) ? "" : __t) + '">' + (null == (__t = tag_text) ? "" : __t) + "</span> "), __p += ' </div><div class="qbsbox-direct-desc qbsbox-direct-text-ellipsis">' + (null == (__t = desc) ? "" : __t) + "</div></div> ", button_text && (__p += ' <div class="ft"><span class="qbsbox-direct-btn">' + (null == (__t = button_text) ? "" : __t) + "</span></div> "), __p += ' </div><div class="qbsbox-direct-ft"> ';
            for (var i = 0; i < list.length; i++) {
                var item = list[i];
                __p += ' <div class="subitem qbsbox-direct-text-ellipsis"><span class="qbsbox-direct-thumb"><img src="' + (null == (__t = item.thumb) ? "" : __t) + '"> </span><span i="' + (null == (__t = i) ? "" : __t) + '" class="qbsbox-direct-text">' + (null == (__t = item.text) ? "" : __t) + "</span></div> "
            }
            __p += " </div>"
        }
        return __p
    }
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "", __j = Array.prototype.join;

        function print() {
            __p += __j.call(arguments, "")
        }

        with (obj) {
            __p += '<div class="qbsbox-direct-hd"><div class="qbsbox-direct-thumb"><img src="' + (null == (__t = thumb) ? "" : __t) + '"></div></div><div class="qbsbox-direct-bd"><div class="qbsbox-direct-text"><strong>' + (null == (__t = text) ? "" : __t) + "</strong> ", tag && (__p += ' <span class="qbsbox-direct-tag tag-' + (null == (__t = tag) ? "" : __t) + '">' + (null == (__t = tag_text) ? "" : __t) + "</span> "), __p += ' </div><div class="qbsbox-direct-desc qbsbox-direct-text-ellipsis">' + (null == (__t = desc) ? "" : __t) + "</div> ", button_text && (__p += ' <div class="btns-wrap"><span class="qbsbox-direct-btn">' + (null == (__t = button_text) ? "" : __t) + "</span></div> "), __p += ' </div><div class="qbsbox-direct-ft"> ';
            for (var i = 0; i < list.length; i++) {
                var item = list[i];
                __p += ' <div class="subitem qbsbox-direct-text-ellipsis"><span class="qbsbox-direct-thumb"><img src="' + (null == (__t = item.thumb) ? "" : __t) + '"> </span><span i="' + (null == (__t = i) ? "" : __t) + '" class="qbsbox-direct-text">' + (null == (__t = item.text) ? "" : __t) + "</span></div> "
            }
            __p += " </div>"
        }
        return __p
    }
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "";
        with (obj) __p += '<div class="qbsbox-direct-hd"><div class="qbsbox-direct-thumb" style="background-image: url(' + (null == (__t = thumb) ? "" : __t) + ')"></div></div><div class="qbsbox-direct-bd"><div class="qbsbox-direct-text">' + (null == (__t = text) ? "" : __t) + '</div><div class="qbsbox-direct-desc">' + (null == (__t = desc) ? "" : __t) + "</div></div>";
        return __p
    }
}, function (t, e, n) {
    "use strict";
    n(20);
    var r = n(0), i = n.n(r), o = n(3), s = n.n(o), a = n(2), u = n.n(a), c = n(4), l = n.n(c), h = n(5), f = n.n(h),
        d = n(1), p = n.n(d), v = n(6), g = n.n(v), b = (n(21), "qbsbox-suggestion"), _ = function (t) {
            function e(t, n, r) {
                var i;
                return u()(this, e), t.attributes = Object.assign({}, t.attributes, {
                    i: r,
                    class: "".concat(b, " ").concat(b, "-").concat(n),
                    "data-log": "search.suggest.".concat(r + 1)
                }), (i = l()(this, f()(e).call(this, t))).style = n, i
            }

            return g()(e, t), p()(e, [{
                key: "getExtData", value: function () {
                    return this.data.extData || ""
                }
            }, {
                key: "getInputText", value: function () {
                    var t = this.data;
                    return t.text || t.title || t.name || ""
                }
            }, {
                key: "action", value: function (t) {
                    return !1
                }
            }, {
                key: "isClick", value: function (t) {
                    return "click" === t
                }
            }, {
                key: "isEnter", value: function (t) {
                    return "enter" === t
                }
            }, {
                key: "hasUrl", value: function () {
                    return !!this.data.url
                }
            }]), e
        }(n(8).a), x = "10000", y = function (t) {
            function e(t, n, r, i) {
                var o;
                return u()(this, e), (o = l()(this, f()(e).call(this, {}, x, n))).idx = n, o.data = t, o.keyword = r, o
            }

            var n;
            return g()(e, t), p()(e, null, [{
                key: "getName", value: function () {
                    return x
                }
            }]), p()(e, [{
                key: "initialize", value: (n = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                                this.$el.attr("data-xlog", this.data.text), this.render();
                            case 2:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return n.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    this.$el.html('<span class="text">'.concat(this.addKeyword(), "</span>"))
                }
            }, {
                key: "addKeyword", value: function () {
                    var t = this.keyword, e = this.data.text;
                    if (!t) return e;
                    var n = e.split(new RegExp("^" + t));
                    return 2 === n.length && (n[0] = t, n[1] = '<span class="nokw">'.concat(n[1], "</span>")), n.join("")
                }
            }]), e
        }(_), m = (n(22), n(7)), w = "10001", k = function (t) {
            function e(t, n, r, i) {
                var o;
                return u()(this, e), (o = l()(this, f()(e).call(this, {}, w, n))).idx = n, o.data = t, o
            }

            var n;
            return g()(e, t), p()(e, null, [{
                key: "getName", value: function () {
                    return w
                }
            }]), p()(e, [{
                key: "initialize", value: (n = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                                this.$el.attr({
                                    "data-log": "search.recommend.".concat(this.idx + 1),
                                    "data-xlog": this.data.text
                                }), this.render();
                            case 2:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return n.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    var t = this.data;
                    this.$el.html(['<a href="javascript:void(0);">', '<i class="qbsbox-s-order">'.concat(this.idx + 1, "</i>"), '<span class="qbsbox-s-text">'.concat(t.text, "</span>"), "</a>"].join(""))
                }
            }, {
                key: "action", value: function (t) {
                    return !(!this.isClick(t) || !this.hasUrl()) && (Object(m.d)(this.data.url), !0)
                }
            }]), e
        }(_), q = (n(23), n(10)), j = n.n(q), E = "10002", S = function (t) {
            function e(t, n, r, i) {
                var o;
                return u()(this, e), (o = l()(this, f()(e).call(this, {}, E, n))).idx = n, o.data = t, o
            }

            var n;
            return g()(e, t), p()(e, null, [{
                key: "getName", value: function () {
                    return E
                }
            }]), p()(e, [{
                key: "initialize", value: (n = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                                this.$el.attr("data-xlog", this.data.text), this.render();
                            case 2:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return n.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    var t = this.data;
                    400 !== t.type && 500 !== t.type || this.$el.addClass("qbsbox-direct-video"), this.$el.html(j()(t))
                }
            }, {
                key: "action", value: function () {
                    return Object(m.d)(this.data.url), !0
                }
            }]), e
        }(_), O = (n(24), n(11)), P = n.n(O), C = "10003", L = function (t) {
            function e(t, n, r, i) {
                var o;
                return u()(this, e), (o = l()(this, f()(e).call(this, {events: {"click div.subitem .qbsbox-direct-text": "subitemClickHandler"}}, C, n))).idx = n, o.data = t, o.sbox = i, o
            }

            var n;
            return g()(e, t), p()(e, null, [{
                key: "getName", value: function () {
                    return C
                }
            }]), p()(e, [{
                key: "initialize", value: (n = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                                this.$el.attr("data-xlog", this.data.title), this.render();
                            case 2:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return n.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    var t = this.data;
                    this.$el.html(P()(t))
                }
            }, {
                key: "action", value: function () {
                    return Object(m.d)(this.data.url), !0
                }
            }, {
                key: "subitemClickHandler", value: function (t) {
                    var e = $(t.target).attr("i") - 0, n = this.data.list[e];
                    n && n.url && (t.stopPropagation(), t.preventDefault(), this.sbox && (this.sbox.store.inputValue = this.getInputText(), this.sbox.spanel.hide()), Object(m.d)(n.url))
                }
            }]), e
        }(_), I = (n(25), n(12)), N = n.n(I), T = "10006", R = function (t) {
            function e(t, n, r, i) {
                var o;
                return u()(this, e), (o = l()(this, f()(e).call(this, {events: {"click div.subitem .qbsbox-direct-text": "subitemClickHandler"}}, T, n))).idx = n, o.data = t, o.sbox = i, o
            }

            var n;
            return g()(e, t), p()(e, null, [{
                key: "getName", value: function () {
                    return T
                }
            }]), p()(e, [{
                key: "initialize", value: (n = s()(i.a.mark(function t() {
                    return i.a.wrap(function (t) {
                        for (; ;) switch (t.prev = t.next) {
                            case 0:
                                this.$el.attr("data-xlog", this.data.title), this.render();
                            case 2:
                            case"end":
                                return t.stop()
                        }
                    }, t, this)
                })), function () {
                    return n.apply(this, arguments)
                })
            }, {
                key: "render", value: function () {
                    var t = this.data;
                    this.$el.html(N()(t))
                }
            }, {
                key: "action", value: function () {
                    return Object(m.d)(this.data.url), !0
                }
            }, {
                key: "subitemClickHandler", value: function (t) {
                    var e = $(t.target).attr("i") - 0, n = this.data.list[e];
                    n && n.url && (t.stopPropagation(), t.preventDefault(), this.sbox && (this.sbox.store.inputValue = this.getInputText(), this.sbox.spanel.hide()), Object(m.d)(n.url))
                }
            }]), e
        }(_), D = (n(26), n(13)), A = n.n(D), H = "10007", z = {};
    [y, k, S, L, R, function (t) {
        function e(t, n, r, i) {
            var o;
            return u()(this, e), (o = l()(this, f()(e).call(this, {}, H, n))).idx = n, o.data = t, o
        }

        var n;
        return g()(e, t), p()(e, null, [{
            key: "getName", value: function () {
                return H
            }
        }]), p()(e, [{
            key: "initialize", value: (n = s()(i.a.mark(function t() {
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            this.$el.attr("data-xlog", this.data.title), this.render();
                        case 2:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return n.apply(this, arguments)
            })
        }, {
            key: "render", value: function () {
                var t = this.data;
                this.$el.html(A()(t))
            }
        }, {
            key: "action", value: function () {
                return Object(m.d)(this.data.url), !0
            }
        }]), e
    }(_)].forEach(function (t) {
        z[t.getName()] = t
    });
    e.a = {
        parse: function (t, e, n, r) {
            var i = t.style;
            if (i && z[i]) return new z[i](t, e, n, r)
        }
    }
}, function (t, e, n) {
    var r = function () {
            return this || "object" == typeof self && self
        }() || Function("return this")(),
        i = r.regeneratorRuntime && Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime") >= 0,
        o = i && r.regeneratorRuntime;
    if (r.regeneratorRuntime = void 0, t.exports = n(16), i) r.regeneratorRuntime = o; else try {
        delete r.regeneratorRuntime
    } catch (t) {
        r.regeneratorRuntime = void 0
    }
}, function (t, e) {
    !function (e) {
        "use strict";
        var n, r = Object.prototype, i = r.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {},
            s = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator",
            u = o.toStringTag || "@@toStringTag", c = "object" == typeof t, l = e.regeneratorRuntime;
        if (l) c && (t.exports = l); else {
            (l = e.regeneratorRuntime = c ? t.exports : {}).wrap = y;
            var h = "suspendedStart", f = "suspendedYield", d = "executing", p = "completed", v = {}, g = {};
            g[s] = function () {
                return this
            };
            var b = Object.getPrototypeOf, _ = b && b(b(C([])));
            _ && _ !== r && i.call(_, s) && (g = _);
            var x = q.prototype = w.prototype = Object.create(g);
            k.prototype = x.constructor = q, q.constructor = k, q[u] = k.displayName = "GeneratorFunction", l.isGeneratorFunction = function (t) {
                var e = "function" == typeof t && t.constructor;
                return !!e && (e === k || "GeneratorFunction" === (e.displayName || e.name))
            }, l.mark = function (t) {
                return Object.setPrototypeOf ? Object.setPrototypeOf(t, q) : (t.__proto__ = q, u in t || (t[u] = "GeneratorFunction")), t.prototype = Object.create(x), t
            }, l.awrap = function (t) {
                return {__await: t}
            }, j(E.prototype), E.prototype[a] = function () {
                return this
            }, l.AsyncIterator = E, l.async = function (t, e, n, r) {
                var i = new E(y(t, e, n, r));
                return l.isGeneratorFunction(e) ? i : i.next().then(function (t) {
                    return t.done ? t.value : i.next()
                })
            }, j(x), x[u] = "Generator", x[s] = function () {
                return this
            }, x.toString = function () {
                return "[object Generator]"
            }, l.keys = function (t) {
                var e = [];
                for (var n in t) e.push(n);
                return e.reverse(), function n() {
                    for (; e.length;) {
                        var r = e.pop();
                        if (r in t) return n.value = r, n.done = !1, n
                    }
                    return n.done = !0, n
                }
            }, l.values = C, P.prototype = {
                constructor: P, reset: function (t) {
                    if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(O), !t) for (var e in this) "t" === e.charAt(0) && i.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = n)
                }, stop: function () {
                    this.done = !0;
                    var t = this.tryEntries[0].completion;
                    if ("throw" === t.type) throw t.arg;
                    return this.rval
                }, dispatchException: function (t) {
                    if (this.done) throw t;
                    var e = this;

                    function r(r, i) {
                        return a.type = "throw", a.arg = t, e.next = r, i && (e.method = "next", e.arg = n), !!i
                    }

                    for (var o = this.tryEntries.length - 1; o >= 0; --o) {
                        var s = this.tryEntries[o], a = s.completion;
                        if ("root" === s.tryLoc) return r("end");
                        if (s.tryLoc <= this.prev) {
                            var u = i.call(s, "catchLoc"), c = i.call(s, "finallyLoc");
                            if (u && c) {
                                if (this.prev < s.catchLoc) return r(s.catchLoc, !0);
                                if (this.prev < s.finallyLoc) return r(s.finallyLoc)
                            } else if (u) {
                                if (this.prev < s.catchLoc) return r(s.catchLoc, !0)
                            } else {
                                if (!c) throw new Error("try statement without catch or finally");
                                if (this.prev < s.finallyLoc) return r(s.finallyLoc)
                            }
                        }
                    }
                }, abrupt: function (t, e) {
                    for (var n = this.tryEntries.length - 1; n >= 0; --n) {
                        var r = this.tryEntries[n];
                        if (r.tryLoc <= this.prev && i.call(r, "finallyLoc") && this.prev < r.finallyLoc) {
                            var o = r;
                            break
                        }
                    }
                    o && ("break" === t || "continue" === t) && o.tryLoc <= e && e <= o.finallyLoc && (o = null);
                    var s = o ? o.completion : {};
                    return s.type = t, s.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, v) : this.complete(s)
                }, complete: function (t, e) {
                    if ("throw" === t.type) throw t.arg;
                    return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), v
                }, finish: function (t) {
                    for (var e = this.tryEntries.length - 1; e >= 0; --e) {
                        var n = this.tryEntries[e];
                        if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), O(n), v
                    }
                }, catch: function (t) {
                    for (var e = this.tryEntries.length - 1; e >= 0; --e) {
                        var n = this.tryEntries[e];
                        if (n.tryLoc === t) {
                            var r = n.completion;
                            if ("throw" === r.type) {
                                var i = r.arg;
                                O(n)
                            }
                            return i
                        }
                    }
                    throw new Error("illegal catch attempt")
                }, delegateYield: function (t, e, r) {
                    return this.delegate = {
                        iterator: C(t),
                        resultName: e,
                        nextLoc: r
                    }, "next" === this.method && (this.arg = n), v
                }
            }
        }

        function y(t, e, n, r) {
            var i = e && e.prototype instanceof w ? e : w, o = Object.create(i.prototype), s = new P(r || []);
            return o._invoke = function (t, e, n) {
                var r = h;
                return function (i, o) {
                    if (r === d) throw new Error("Generator is already running");
                    if (r === p) {
                        if ("throw" === i) throw o;
                        return L()
                    }
                    for (n.method = i, n.arg = o; ;) {
                        var s = n.delegate;
                        if (s) {
                            var a = $(s, n);
                            if (a) {
                                if (a === v) continue;
                                return a
                            }
                        }
                        if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) {
                            if (r === h) throw r = p, n.arg;
                            n.dispatchException(n.arg)
                        } else "return" === n.method && n.abrupt("return", n.arg);
                        r = d;
                        var u = m(t, e, n);
                        if ("normal" === u.type) {
                            if (r = n.done ? p : f, u.arg === v) continue;
                            return {value: u.arg, done: n.done}
                        }
                        "throw" === u.type && (r = p, n.method = "throw", n.arg = u.arg)
                    }
                }
            }(t, n, s), o
        }

        function m(t, e, n) {
            try {
                return {type: "normal", arg: t.call(e, n)}
            } catch (t) {
                return {type: "throw", arg: t}
            }
        }

        function w() {
        }

        function k() {
        }

        function q() {
        }

        function j(t) {
            ["next", "throw", "return"].forEach(function (e) {
                t[e] = function (t) {
                    return this._invoke(e, t)
                }
            })
        }

        function E(t) {
            var e;
            this._invoke = function (n, r) {
                function o() {
                    return new Promise(function (e, o) {
                        !function e(n, r, o, s) {
                            var a = m(t[n], t, r);
                            if ("throw" !== a.type) {
                                var u = a.arg, c = u.value;
                                return c && "object" == typeof c && i.call(c, "__await") ? Promise.resolve(c.__await).then(function (t) {
                                    e("next", t, o, s)
                                }, function (t) {
                                    e("throw", t, o, s)
                                }) : Promise.resolve(c).then(function (t) {
                                    u.value = t, o(u)
                                }, function (t) {
                                    return e("throw", t, o, s)
                                })
                            }
                            s(a.arg)
                        }(n, r, e, o)
                    })
                }

                return e = e ? e.then(o, o) : o()
            }
        }

        function $(t, e) {
            var r = t.iterator[e.method];
            if (r === n) {
                if (e.delegate = null, "throw" === e.method) {
                    if (t.iterator.return && (e.method = "return", e.arg = n, $(t, e), "throw" === e.method)) return v;
                    e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method")
                }
                return v
            }
            var i = m(r, t.iterator, e.arg);
            if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, v;
            var o = i.arg;
            return o ? o.done ? (e[t.resultName] = o.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = n), e.delegate = null, v) : o : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, v)
        }

        function S(t) {
            var e = {tryLoc: t[0]};
            1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e)
        }

        function O(t) {
            var e = t.completion || {};
            e.type = "normal", delete e.arg, t.completion = e
        }

        function P(t) {
            this.tryEntries = [{tryLoc: "root"}], t.forEach(S, this), this.reset(!0)
        }

        function C(t) {
            if (t) {
                var e = t[s];
                if (e) return e.call(t);
                if ("function" == typeof t.next) return t;
                if (!isNaN(t.length)) {
                    var r = -1, o = function e() {
                        for (; ++r < t.length;) if (i.call(t, r)) return e.value = t[r], e.done = !1, e;
                        return e.value = n, e.done = !0, e
                    };
                    return o.next = o
                }
            }
            return {next: L}
        }

        function L() {
            return {value: n, done: !0}
        }
    }(function () {
        return this || "object" == typeof self && self
    }() || Function("return this")())
}, function (t, e) {
    t.exports = function (t) {
        if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        return t
    }
}, function (t, e) {
    function n(e, r) {
        return t.exports = n = Object.setPrototypeOf || function (t, e) {
            return t.__proto__ = e, t
        }, n(e, r)
    }

    t.exports = n
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "";
        with (obj) __p += '<div class="qbsbox-main"><div class="qbsbox-input-wrap"></div><span class="qbsbox-search-btn" data-log="search.button" data-rid="' + (null == (__t = srid) ? "" : __t) + '">\u641c\u7d22</span></div>';
        return __p
    }
}, function (module, exports) {
    module.exports = function (obj) {
        obj || (obj = {});
        var __t, __p = "", __j = Array.prototype.join;

        function print() {
            __p += __j.call(arguments, "")
        }

        with (obj) {
            __p += '<div class="qbsbox-engine-btn">' + (null == (__t = defaultEngine) ? "" : __t) + '</div><ul class="qbsbox-engine-list"> ';
            for (var i = 0; i < list.length; i++) __p += ' <li data-engine="' + (null == (__t = list[i].engine) ? "" : __t) + '"><img src="' + (null == (__t = list[i].icon) ? "" : __t) + '"> <span>' + (null == (__t = list[i].title) ? "" : __t) + "</span></li> ";
            __p += " </ul>"
        }
        return __p
    }
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, function (t, e, n) {
}, , function (t, e, n) {
    "use strict";
    n.r(e);
    var r = n(0), i = n.n(r), o = n(3), s = n.n(o), a = n(2), u = n.n(a), c = n(1), l = n.n(c), h = n(4), f = n.n(h),
        d = n(5), p = n.n(d), v = n(6), g = n.n(v), b = (n(29), n(8)), _ = {
            selector: "",
            adtag: "daohang",
            logo: "none",
            btn: "text",
            registry: !1,
            width: 638,
            engine: "",
            placeholder: !0
        }, x = n(27), y = n.n(x), m = (n(30), n(7));
    var w = {
        serach: function (t, e) {
            var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "",
                r = arguments.length > 3 ? arguments[3] : void 0;
            $.post("https://skeyword.browser.qq.com/v1/report", {
                guid: Object(m.a)(),
                adtag: r.adtag,
                keyword: t,
                action: e,
                extSumData: "search" === e ? "" : r.extSumData,
                extData: n
            })
        }
    }, k = function (t) {
        function e(t) {
            var n;
            return u()(this, e), (n = f()(this, p()(e).call(this, {
                tagName: "input",
                attributes: {type: "text", class: "qbsbox-input", "data-log": "search.13"},
                events: {input: "whenInputAndFocus", focus: "whenInputAndFocus", keydown: "whenKeydown"}
            }))).sbox = t, n.store = t.store, n.spanel = t.spanel, n.needPlaceholder = t.options.placeholder, n.placeholder = null, n.$el.attr("id", n.store.qbl_ref_id), n
        }

        var n;
        return g()(e, t), l()(e, [{
            key: "initialize", value: (n = s()(i.a.mark(function t() {
                var e = this;
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            this.store.on("inputValue", function (t, n) {
                                e.setValue(n)
                            });
                        case 1:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return n.apply(this, arguments)
            })
        }, {
            key: "getValue", value: function (t) {
                var e = this.$el.val().trim();
                return !e && t && this.placeholder && (e = this.placeholder.text), e
            }
        }, {
            key: "setValue", value: function (t) {
                var e = this;
                this.$el.val(t), setTimeout(function () {
                    e.el.setSelectionRange(-1, -1)
                }, 0)
            }
        }, {
            key: "updatePlaceHolder", value: function (t) {
                this.needPlaceholder && t && t.text ? (this.placeholder = t, this.$el.attr({placeholder: t.text})) : this.$el.attr({placeholder: "\u641c\u4f60\u60f3\u641c\u7684"})
            }
        }, {
            key: "whenInputAndFocus", value: function (t) {
                var e = $(t.target).val().trim(), n = this;
                clearTimeout(n.__timehandler), n.__timehandler = setTimeout(function () {
                    n.spanel.inputContentChange(e)
                }, 100)
            }
        }, {
            key: "whenKeydown", value: function (t) {
                var e = $(t.target).val().trim(), n = t.keyCode, r = this.spanel;
                switch (n) {
                    case 13:
                        r.doAction(e, "enter") || this.sbox.doSearch(e), w.serach(this.getValue(!0), "click", r.getCurrentExtData(), this.store);
                        break;
                    case 38:
                        r.updateIndex(-1);
                        break;
                    case 40:
                        r.updateIndex(1)
                }
            }
        }]), e
    }(b.a), q = (n(31), n(28)), j = n.n(q), E = "//stdl.qq.com/stdl/newtabcms", S = [{
        title: "\u641c\u72d7",
        engine: "sogou",
        icon: E + "/sogou.png",
        url: "https://www.sogou.com/tx?ie=utf-8&pid=sogou-site-1f2b8183cd1e469a&query="
    }, {
        title: "\u767e\u5ea6",
        engine: "baidu",
        icon: E + "/baidu.png",
        url: "https://www.baidu.com/s?ie=utf8&oe=utf8&tn=98010089_dg&ch=11&wd="
    }, {title: "Bing", engine: "bing", icon: E + "/bing.png", url: "https://cn.bing.com/search?q="}, {
        title: "Google",
        engine: "google",
        icon: E + "/google.ico",
        url: "https://www.google.com.hk/search?hl=zh-CN&q="
    }], O = "search_engine", P = "webui", C = "sogou";

    function L() {
        return (L = s()(i.a.mark(function t(e) {
            var n;
            return i.a.wrap(function (t) {
                for (; ;) switch (t.prev = t.next) {
                    case 0:
                        if (e.registry) {
                            t.next = 2;
                            break
                        }
                        return t.abrupt("return", S);
                    case 2:
                        return t.prev = 2, t.next = 5, new Promise(function (t, e) {
                            chrome.searchEngine.getEngines(P, function (n, r) {
                                n.length ? (n.slice(0, 4).forEach(function (t) {
                                    S.forEach(function (e) {
                                        t.keyword.indexOf(e.engine) > -1 && (t.engine = e.engine, t.icon = e.icon)
                                    }), t.id === r && (n.defaultEngine = t.engine)
                                }), t(n)) : e(new Error("chrome.searchEngine.getEngines error, return empty list"))
                            })
                        });
                    case 5:
                        n = t.sent, e.engine || (e.engine = n.defaultEngine), t.next = 12;
                        break;
                    case 9:
                        t.prev = 9, t.t0 = t.catch(2), n = S;
                    case 12:
                        return t.abrupt("return", n);
                    case 13:
                    case"end":
                        return t.stop()
                }
            }, t, this, [[2, 9]])
        }))).apply(this, arguments)
    }

    var I = {
        getEngines: function (t) {
            return L.apply(this, arguments)
        }, initDefault: function (t) {
            if (!t.engine) {
                var e = window.localStorage.getItem(O) || C;
                t.engine = e
            }
        }, setDefault: function (t, e) {
            e.registry && Number.isInteger(t.id) ? chrome.searchEngine.setDefaultEngine(id, P) : window.localStorage.setItem(O, t.engine)
        }
    }, N = function (t) {
        function e(t) {
            var n;
            return u()(this, e), (n = f()(this, p()(e).call(this, {
                attributes: {class: "qbsbox-engine"},
                events: {"click .qbsbox-engine-btn": "showEngines", "click li": "chooseEngine"}
            }))).sbox = t, n.options = t.options, n
        }

        var n;
        return g()(e, t), l()(e, [{
            key: "initialize", value: (n = s()(i.a.mark(function t() {
                var e, n;
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            return e = this.options, t.next = 3, I.getEngines(e);
                        case 3:
                            this.engines = t.sent, I.initDefault(e), this.render(), n = this, $("html").on("click", function (t) {
                                $(t.target).closest("div.qbsbox-engine").length || n.hideEngines()
                            });
                        case 8:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return n.apply(this, arguments)
            })
        }, {
            key: "render", value: function () {
                if (!this.engines) return this;
                var t = this.getCurrentEngine();
                return this.sbox.$el.attr("data-engine", t.engine), this.$el.html(j()({
                    defaultEngine: t.title,
                    list: this.engines || []
                })), this.$list = this.$el.find("ul"), this
            }
        }, {
            key: "setDefaultEngine", value: function (t) {
                this.sbox.options.engine !== t ? (this.sbox.options.engine = t, I.setDefault(this.getCurrentEngine(), this.options), this.render()) : this.hideEngines()
            }
        }, {
            key: "getCurrentEngine", value: function () {
                var t = this.sbox.options.engine;
                return this.engines.find(function (e) {
                    return e.engine === t
                })
            }
        }, {
            key: "getDefaultEngineTitle", value: function (t) {
                return t || (t = this.sbox.options.engine), this.engines.find(function (e) {
                    return e.engine === t
                }).title
            }
        }, {
            key: "hideEngines", value: function () {
                this.$list.hide()
            }
        }, {
            key: "showEngines", value: function (t) {
                this.$list.toggle()
            }
        }, {
            key: "chooseEngine", value: function (t) {
                var e = $(t.target).closest("li").data("engine");
                this.setDefaultEngine(e)
            }
        }]), e
    }(b.a);
    n(19);

    function T() {
    }

    var R = "https://skeyword.browser.qq.com", D = null;
    "1" === Object(m.c)().debug && (R = "https://skeyword.sparta.html5.qq.com"), T.getHotRank = function () {
        return new Promise(function (t, e) {
            D && t(D), $.ajax({
                url: R + "/getHotRank", success: function (e) {
                    D = e, t(e)
                }, error: function (t) {
                    return e(t)
                }
            })
        })
    }, T.getSuggestions = function (t, e) {
        return new Promise(function (n, r) {
            $.ajax({
                url: R + "/v1/suggest",
                data: {adtag: e.adtag, guid: Object(m.a)(), text: t},
                success: function (t) {
                    return n(t)
                },
                error: function (t) {
                    return r(t)
                }
            })
        })
    };
    var A = T, H = n(14), z = function (t) {
        function e(t) {
            var n;
            return u()(this, e), (n = f()(this, p()(e).call(this, {
                attributes: {class: "qbsbox-panel"},
                events: {
                    "mouseenter div.qbsbox-suggestion": "mouseenterHandler",
                    "click div.qbsbox-suggestion": "clickHandler"
                }
            }))).sbox = t, n.store = t.store, n.options = t.options, n.queue = [], n.curQuery = null, n.curIndex = null, n.abindex = 0, n.abpanel = [$('<div class="inner-panel"></div>'), $('<div class="inner-panel"></div>')], n.$el.append(n.abpanel), n
        }

        var n, r;
        return g()(e, t), l()(e, [{
            key: "initialize", value: (r = s()(i.a.mark(function t() {
                var e, n, r = this;
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            return t.next = 2, A.getHotRank();
                        case 2:
                            e = t.sent, this.hotRankList = e.hot_rank || [], this.hotRankList.forEach(function (t) {
                                return t.style = "10001"
                            }), this.sbox.sinput.updatePlaceHolder(e.placeholder), setTimeout(function () {
                                r.renderHotRank(!0)
                            }, 100), n = this, $("html").on("click", function (t) {
                                var e = $(t.target).closest("div.qbsbox-panel"),
                                    r = $(t.target).closest(".qbsbox-input");
                                e.length || r.length || n.hide()
                            });
                        case 9:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return r.apply(this, arguments)
            })
        }, {
            key: "renderHotRank", value: function (t) {
                this._r_s = 1, this.store.extSumData = "", this.render(this.hotRankList, null, t)
            }
        }, {
            key: "renderSuggestions", value: (n = s()(i.a.mark(function t(e) {
                var n, r;
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            return this._r_s = 2, t.next = 3, A.getSuggestions(e, {adtag: this.store.adtag});
                        case 3:
                            n = t.sent, 2 === this._r_s && (this.store.extSumData = n.extSumData, r = [].concat(n.entry ? n.entry.map(function (t) {
                                return t.style || (t.style = "10002"), t
                            }) : [], n.list ? n.list.map(function (t) {
                                return t.style || (t.style = "10000"), t
                            }) : []), this.render(r, n.keyword));
                        case 5:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function (t) {
                return n.apply(this, arguments)
            })
        }, {
            key: "render", value: function () {
                var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
                    e = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 ? arguments[2] : void 0,
                    r = [], i = 0, o = this.sbox;
                return [].concat(this.options._list || [], t).forEach(function (t, n) {
                    var s = H.a.parse(t, i++, e, o);
                    s ? r.push(s) : i--
                }), this.curIndex = null, this.queue = r, r.length ? (this.updatePanel(), !n && this.show()) : this.hide(), this
            }
        }, {
            key: "updatePanel", value: function () {
                var t = this.abindex, e = (t + 1) % 2;
                this.abindex = e;
                var n = this.abpanel[t], r = this.abpanel[e];
                n.css("z-index", 2).show(), r.css("z-index", 1).show(), r.append(this.queue.map(function (t) {
                    return t.$el
                })), setTimeout(function () {
                    n.hide(), n.empty()
                }, 0)
            }
        }, {
            key: "inputContentChange", value: function (t) {
                this.curQuery !== t ? (this.curQuery = t, t ? this.renderSuggestions(t) : this.renderHotRank()) : this.queue.length && this.show()
            }
        }, {
            key: "updateIndex", value: function (t) {
                var e = this.queue.length;
                if (e) {
                    var n = t < 0 ? t : 0;
                    null !== this.curIndex && (n = this.curIndex + t), n = (e + n) % e, this.activeCurrentSuggestion(n), this.store.inputValue = this.queue[n].getInputText()
                }
            }
        }, {
            key: "doAction", value: function (t, e) {
                var n = this.getCurrentSuggestion();
                return this.hide(), !!n && n.action(e)
            }
        }, {
            key: "getCurrentSuggestion", value: function () {
                return null === this.curIndex ? null : this.queue[this.curIndex]
            }
        }, {
            key: "getCurrentExtData", value: function () {
                var t = this.getCurrentSuggestion();
                return t ? t.getExtData() : ""
            }
        }, {
            key: "activeCurrentSuggestion", value: function (t) {
                var e = this.getCurrentSuggestion();
                e && e.$el.removeClass("active"), this.queue[t].$el.addClass("active"), this.curIndex = t
            }
        }, {
            key: "mouseenterHandler", value: function (t) {
                var e = $(t.currentTarget).attr("i") - 0;
                this.activeCurrentSuggestion(e)
            }
        }, {
            key: "clickHandler", value: function (t) {
                var e = $(t.currentTarget).attr("i") - 0, n = this.queue[e].getInputText();
                this.store.inputValue = n, this.doAction(n, "click") || this.sbox.doSearch(n)
            }
        }]), e
    }(b.a), G = (n(32), function (t) {
        function e(t) {
            var n;
            return u()(this, e), (n = f()(this, p()(e).call(this, {attributes: {class: "qbsbox-logo"}}))).sbox = t, n.options = t.options, n
        }

        var n;
        return g()(e, t), l()(e, [{
            key: "initialize", value: (n = s()(i.a.mark(function t() {
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return n.apply(this, arguments)
            })
        }, {
            key: "render", value: function () {
                return this
            }
        }]), e
    }(b.a)), V = n(9), F = n.n(V);

    function M() {
        var t = {"*": []};
        return {
            get: function (e, n) {
                return "on" === n ? function (t, e, n) {
                    2 === arguments.length && (n = e, e = "*"), "function" == typeof n && "string" == typeof e && (e = e.split(/\s*,\s*/)).forEach(function (e) {
                        var r = t[e] || [];
                        r.push(n), t[e] = r
                    })
                }.bind(e, t) : e[n]
            }, set: function (e, n, r) {
                if ("on" === n) return !1;
                var i = e[n];
                return e[n] = r, i !== r && function (e, n, r, i) {
                    var o = t[n] || [], s = t["*"];

                    function a(t) {
                        "function" == typeof t && t(n, r, i, e)
                    }

                    o.forEach(a), s.forEach(a)
                }(e, n, r, i), !0
            }
        }
    }

    var K = function (t) {
        if (void 0 === t && (t = {}), "object" !== F()(t) || t.push) throw new TypeError("First arg must be Object or undefined, you provided ", t);
        return new Proxy(t, M())
    }, U = function (t) {
        function e(t) {
            var n;
            u()(this, e), (n = f()(this, p()(e).call(this, {
                attributes: {class: "qbsbox-container"},
                events: {"click .qbsbox-search-btn": "searchBtnClickHandler"}
            }))).options = Object.assign({}, _, t), n.store = K({
                adtag: n.options.adtag,
                extSumData: "",
                qbl_ref_id: Object(m.b)(),
                inputValue: ""
            });
            var r = $("".concat(n.options.selector));
            return n.$el.attr("data-btn", n.options.btn), r.html(n.$el), n.render(), n
        }

        var n;
        return g()(e, t), l()(e, [{
            key: "initialize", value: (n = s()(i.a.mark(function t() {
                var e, n;
                return i.a.wrap(function (t) {
                    for (; ;) switch (t.prev = t.next) {
                        case 0:
                            e = this.$el.find("div.qbsbox-input-wrap"), n = this.$el.find("div.qbsbox-main"), this.slogo = new G(this), this.spanel = new z(this), this.sinput = new k(this), this.sengine = new N(this), e.append(this.sinput.$el), e.append(this.sengine.$el), n.append(this.spanel.$el), n.before(this.slogo.$el);
                        case 10:
                        case"end":
                            return t.stop()
                    }
                }, t, this)
            })), function () {
                return n.apply(this, arguments)
            })
        }, {
            key: "render", value: function () {
                return this.updateLogoPosition(), this.$el.html(y()({srid: this.store.qbl_ref_id})), this
            }
        }, {
            key: "doSearch", value: function (t) {
                void 0 === t && (t = this.sinput.getValue());
                var e = this.sinput.placeholder;
                if (!t && e) {
                    if (e.url) return Object(m.d)(e.url);
                    t = e.text
                }
                var n = this.sengine.getCurrentEngine();
                this.options.registry && window.chrome && chrome.searchEngine ? chrome.searchEngine.search(t, 4, "webui") : (Object(m.d)(n.url + encodeURIComponent(t)), window._qblog && _qblog.k1201 && _qblog.k1201.track({
                    v2: 2,
                    s1: t,
                    s3: "search.engine." + n.engine
                }), this.options.onsearch && this.options.onsearch(n.engine, t))
            }
        }, {
            key: "searchBtnClickHandler", value: function () {
                var t = this.sinput.getValue();
                this.doSearch(t), w.serach(this.sinput.getValue(!0), "search", "", this.store)
            }
        }, {
            key: "updateLogoPosition", value: function (t) {
                t || (t = this.options.logo), this.$el.attr("data-logo", t), this.$el.width("left" === t ? "auto" : this.options.width)
            }
        }]), e
    }(b.a);

    function B(t) {
        return new U(t)
    }

    B.init = B;
    e.default = B;
    window && (window.qbsearchbox = window.qbsearch = B)
}]);